package com.nt.thah.dao;

import com.nt.thah.entity.ScoreAccount;
import com.nt.thah.entity.ScoreDetail;
import com.nt.thah.requestparam.BaseParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @Description: 用户余额
* @author: ls
* @Date: 2020-08-11 09:28:02
*/
@Mapper
public interface ScoreAccountDao {

    int update(ScoreAccount sa);

    ScoreAccount getAccountById(Integer userId);

    int save(ScoreAccount sa);

    Integer checkIsExist(Integer userId);

    Integer getTotalScore(BaseParam param);
}
